var limsEnvironmentRoom = Gikam.getPageObject({

    getEditListColumns: function () {
        return [{
            checkbox: true
        }, {index: true}, {
            field: 'roomCode',
            validators: ['strLength[0,10]', 'notEmpty', 'remote[/secure/basemodule/rm/environment-rooms/action/validate-unique]'],
            title: 'T_LIMS_ENVIRONMENT_ROOM.ROOMCODE'
        }, {
            field: 'roomName',
            validators: ['strLength[0,53]', 'notEmpty'],
            title: 'T_LIMS_ENVIRONMENT_ROOM.ROOMNAME'
        }, {
            field: 'area',
            title: 'T_LIMS_ENVIRONMENT_DATA.AREA',
            editor: true,
            validators: ['strLength[0,12]']
        }, {
            field: 'tempHigh',
            title: 'T_LIMS_ENVIRONMENT_DATA.TEMPHIGH',
            editor: true,
            validators: ['strLength[0,12]']
        }, {
            field: 'tempLow',
            title: 'T_LIMS_ENVIRONMENT_DATA.TEMPLOW',
            editor: true,
            validators: ['strLength[0,12]']
        }, {
            field: 'humHigh',
            title: 'T_LIMS_ENVIRONMENT_DATA.HUMHIGH',
            editor: true,
            validators: ['strLength[0,12]']
        }, {
            field: 'humLow',
            title: 'T_LIMS_ENVIRONMENT_DATA.HUMLOW',
            editor: true,
            validators: ['strLength[0,12]']
        }, {
            field: 'createdByName',
            title: 'T_LIMS_ENVIRONMENT_ROOM.CREATEDBYNAME'
        }, {
            field: 'createdTime',
            title: 'T_LIMS_ENVIRONMENT_ROOM.CREATEDTIME',
            type: 'dateTime'
        }]
    },

    getBaseInfoFormFields: function () {
        return [{
            field: 'roomCode',
            title: 'T_LIMS_ENVIRONMENT_ROOM.ROOMCODE',
            validators: ['strLength[0,10]', 'notEmpty', 'remote[/secure/basemodule/rm/environment-rooms/action/validate-unique]'],
            preInsert: true
        }, {
            field: 'roomName',
            title: 'T_LIMS_ENVIRONMENT_ROOM.ROOMNAME',
            validators: ['strLength[0,53]', 'notEmpty'],
            preInsert: true
        },]
    },

    getChooseListColumns: function () {
        return [{index: true},{
            field: 'roomCode',
            title: 'T_LIMS_ENVIRONMENT_ROOM.ROOMCODE'
        }, {
            field: 'roomName',
            title: 'T_LIMS_ENVIRONMENT_ROOM.ROOMNAME'
        },]
    },

    baseUrl: IFM_CONTEXT + '/secure/basemodule/rm/environment-rooms',

    /**
     * 环境数据
     */
    getRoomDataEditListColumns: function () {
        return [{
            checkbox: true
        }, {index: true}, {
            field: 'time',
            title: 'T_LIMS_ENVIRONMENT_DATA.TIME',
            editor: true,
            type: 'dateTime',
            width: 150,
            validators: ['notEmpty']
        }, {
            field: 'tempA',
            title: 'T_LIMS_ENVIRONMENT_DATA.TEMPA',
            editor: true,
            validators: ['strLength[0,12]']
        }, {
            field: 'humA',
            title: 'T_LIMS_ENVIRONMENT_DATA.HUMA',
            editor: true,
            validators: ['strLength[0,12]']
        }, /*{
            field: 'paA',
            title: 'T_LIMS_ENVIRONMENT_DATA.PAA',
            editor: true,
            validators: ['strLength[0,12]'],
            width: 180
        }, {
            field: 'roomTopaA',
            title: 'T_LIMS_ENVIRONMENT_DATA.ROOMTOPAA',
            editor: true,
            validators: ['strLength[0,12]'],
            width: 180
        }, {
            field: 'dustParticlesA',
            title: 'T_LIMS_ENVIRONMENT_DATA.DUSTPARTICLESA',
            editor: true,
            validators: ['strLength[0,12]']
        }, */{
            field: 'recA',
            title: 'T_LIMS_ENVIRONMENT_DATA.RECA',
            editor: true,
            validators: ['strLength[0,12]']
        }, {
            field: 'remark',
            title: 'T_LIMS_ENVIRONMENT_DATA.REMARK',
            editor: true,
            validators: ['strLength[0,12]']
        },]
    },

    getRoomDataShowListColumns: function () {
        return [{
            checkbox: true
        }, {index: true}, {
            field: 'time',
            title: 'T_LIMS_ENVIRONMENT_DATA.TIME',
            type: 'dateTime',
            validators: ['strLength[0,12]'],
            width: 150
        }, {
            field: 'tempA',
            title: 'T_LIMS_ENVIRONMENT_DATA.TEMPA',
            validators: ['strLength[0,12]']
        }, {
            field: 'humA',
            title: 'T_LIMS_ENVIRONMENT_DATA.HUMA',
            validators: ['strLength[0,12]']
        }, {
            field: 'paA',
            title: 'T_LIMS_ENVIRONMENT_DATA.PAA',
            validators: ['strLength[0,12]'],
            width: 180
        }, {
            field: 'roomTopaA',
            title: 'T_LIMS_ENVIRONMENT_DATA.ROOMTOPAA',
            validators: ['strLength[0,12]'],
            width: 180
        }, {
            field: 'dustParticlesA',
            title: 'T_LIMS_ENVIRONMENT_DATA.DUSTPARTICLESA',
            validators: ['strLength[0,12]']
        }, {
            field: 'recA',
            title: 'T_LIMS_ENVIRONMENT_DATA.RECA',
            validators: ['strLength[0,12]']
        }, {
            field: 'remark',
            title: 'T_LIMS_ENVIRONMENT_DATA.REMARK',
            validators: ['strLength[0,12]']
        },]
    },

    getRoomDataBaseInfoFormFields: function () {
        return [{
            field: 'tempA',
            title: 'T_LIMS_ENVIRONMENT_DATA.TEMPA',
            validators: ['strLength[0,12]']
        }, {
            field: 'humA',
            title: 'T_LIMS_ENVIRONMENT_DATA.HUMA',
            validators: ['strLength[0,12]']
        }, {
            field: 'paA',
            title: 'T_LIMS_ENVIRONMENT_DATA.PAA',
            validators: ['strLength[0,12]']
        }, {
            field: 'roomTopaA',
            title: 'T_LIMS_ENVIRONMENT_DATA.ROOMTOPAA',
            validators: ['strLength[0,12]']
        }, {
            field: 'dustParticlesA',
            title: 'T_LIMS_ENVIRONMENT_DATA.DUSTPARTICLESA',
            validators: ['strLength[0,12]']
        }, {
            field: 'recA',
            title: 'T_LIMS_ENVIRONMENT_DATA.RECA',
            validators: ['strLength[0,20]']
        }, {
            field: 'remark',
            title: 'T_LIMS_ENVIRONMENT_DATA.REMARK',
            validators: ['strLength[0,66]']
        }, {
            field: 'activatedFlag',
            title: 'T_LIMS_ENVIRONMENT_DATA.ACTIVATEDFLAG',
            validators: ['strLength[0,8]']
        }, {
            field: 'activatedById',
            title: 'T_LIMS_ENVIRONMENT_DATA.ACTIVATEDBYID',
            validators: ['strLength[0,20]']
        }, {
            field: 'activatedByName',
            title: 'T_LIMS_ENVIRONMENT_DATA.ACTIVATEDBYNAME',
            validators: ['strLength[0,12]']
        },]
    },
})
